package com.diver.flinkdemo.mapper.mysqlMapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diver.flinkdemo.entity.xxt.Fence;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
/**
 * @author zhangyj
 * @date 2023/3/6
 */
public interface FenceMapper extends BaseMapper<Fence> {

    Fence getSchoolCircleFenceInfo(@Param("departId") String departId);

    @Update("update fence set wifi_list = #{wifiList},update_time = CURRENT_TIMESTAMP() where id = #{areaId}")
    void updateWifi(@Param("wifiList") String wifiList,@Param("areaId")  String areaId);
}
